package com.wiz.vo.criteria;

public abstract class CriteriaTO {
	private int pageSize;
	private int pageNo;
	private Boolean isNeedPaging;
	private int startIndex;

	public Boolean getIsNeedPaging() {
		return isNeedPaging;
	}

	public void setIsNeedPaging(Boolean isNeedPaging) {
		this.isNeedPaging = isNeedPaging;
	}

	public int getStartIndex() {
		if (this.startIndex == 0)
			return (this.pageNo - 1) * this.pageSize;
		else
			return this.startIndex;

	}

	public void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}



}
